import request from "./httpload.js";

// 获取剩余套餐
export function getMyMail() {
  return request.get("/packages/my");
}
// 获取基础套餐
export function getBaseMail() {
  return request.get("/packages/base");
}
// 获取短信套餐
export function getSmsMail() {
  return request.get("/packages/sms");
}
// 获取车辆拓展包
export function getCarMail(){
  return request.get("/packages/cars")
}

// 购买基础套餐
export function payBase(base_id) {
  return request.post("/pay/base", {
    base_id: base_id
  })
}


// 购买短信套餐
export function paySms(sms_id) {
  return request.post("/pay/sms", {
    sms_id: sms_id
  })
}


// 购买车辆拓展包
export function payCar(package_car_id) {
  return request.post("/pay/car", {
    package_car_id: package_car_id
  })
}
